.class public Llt/noframe/gpsfarmguide/widgets/MegaToast;
.super Landroid/widget/Toast;
.source "MegaToast.java"


# instance fields
.field text:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 1

    .line 32
    invoke-direct {p0, p1}, Landroid/widget/Toast;-><init>(Landroid/content/Context;)V

    const-string v0, ""

    .line 22
    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/MegaToast;->text:Ljava/lang/String;

    .line 33
    iput-object p2, p0, Llt/noframe/gpsfarmguide/widgets/MegaToast;->text:Ljava/lang/String;

    const-string p2, "layout_inflater"

    .line 34
    invoke-virtual {p1, p2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/view/LayoutInflater;

    const p2, 0x7f0c00bb

    const/4 v0, 0x0

    .line 35
    invoke-virtual {p1, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p1

    const p2, 0x7f09024d

    .line 36
    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/TextView;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/MegaToast;->text:Ljava/lang/String;

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 38
    invoke-virtual {p0, p1}, Landroid/widget/Toast;->setView(Landroid/view/View;)V

    return-void
.end method

.method public static showTextLong(Landroid/content/Context;I)Llt/noframe/gpsfarmguide/widgets/MegaToast;
    .locals 2

    .line 62
    new-instance v0, Llt/noframe/gpsfarmguide/widgets/MegaToast;

    invoke-virtual {p0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, p0, v1}, Llt/noframe/gpsfarmguide/widgets/MegaToast;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 63
    invoke-virtual {p0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p0

    invoke-virtual {v0, p0}, Llt/noframe/gpsfarmguide/widgets/MegaToast;->setMessage(Ljava/lang/String;)V

    const/4 p0, 0x1

    .line 64
    invoke-virtual {v0, p0}, Landroid/widget/Toast;->setDuration(I)V

    .line 65
    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    return-object v0
.end method

.method public static showTextLong(Landroid/content/Context;Ljava/lang/String;)Llt/noframe/gpsfarmguide/widgets/MegaToast;
    .locals 1

    .line 53
    new-instance v0, Llt/noframe/gpsfarmguide/widgets/MegaToast;

    invoke-direct {v0, p0, p1}, Llt/noframe/gpsfarmguide/widgets/MegaToast;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 54
    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/widgets/MegaToast;->setMessage(Ljava/lang/String;)V

    const/4 p0, 0x1

    .line 55
    invoke-virtual {v0, p0}, Landroid/widget/Toast;->setDuration(I)V

    .line 56
    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    return-object v0
.end method

.method public static showTextShort(Landroid/content/Context;Ljava/lang/String;)Llt/noframe/gpsfarmguide/widgets/MegaToast;
    .locals 1

    .line 43
    new-instance v0, Llt/noframe/gpsfarmguide/widgets/MegaToast;

    invoke-direct {v0, p0, p1}, Llt/noframe/gpsfarmguide/widgets/MegaToast;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 44
    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/widgets/MegaToast;->setMessage(Ljava/lang/String;)V

    const/4 p0, 0x0

    .line 45
    invoke-virtual {v0, p0}, Landroid/widget/Toast;->setDuration(I)V

    .line 46
    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    return-object v0
.end method


# virtual methods
.method public getView()Landroid/view/View;
    .locals 3

    .line 73
    invoke-super {p0}, Landroid/widget/Toast;->getView()Landroid/view/View;

    move-result-object v0

    const v1, 0x7f09024d

    .line 74
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iget-object v2, p0, Llt/noframe/gpsfarmguide/widgets/MegaToast;->text:Ljava/lang/String;

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-object v0
.end method

.method public setMessage(Ljava/lang/String;)V
    .locals 0

    .line 80
    iput-object p1, p0, Llt/noframe/gpsfarmguide/widgets/MegaToast;->text:Ljava/lang/String;

    return-void
.end method
